package concepts.instancedetermination;

public class ExampleRunner {

	public static void main(String[] args) {
		
		Parent parent = new Parent();
		Child child01 = new Child();
		//Child child02 = new Child();
		
		
		System.out.println(child01 instanceof Parent);
		System.out.println();
		
		System.out.println(Child.class.isInstance(parent));
		System.out.println(Child.class.isInstance(child01));
		System.out.println(Parent.class.isInstance(child01));
		
		
	}
	
}
